<layout name="layout" />
<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/zh-cn/zh-cn.js"></script>

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="act_id" value="<?php echo $data['act_id']; ?>" />
		<input type="hidden" name="old_picture" value="<?php echo $data['picture']; ?>" />
		<input type="hidden" name="old_big_picture" value="<?php echo $data['big_picture']; ?>" />
		<input type="hidden" name="old_mid_picture" value="<?php echo $data['mid_picture']; ?>" />
		<input type="hidden" name="old_sm_picture" value="<?php echo $data['sm_picture']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">用户的id：</td>
                <td>
                    <input  type="text" name="user_id" value="<?php echo $data['user_id']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">开始时间：</td>
                <td>
                    <input id="gene_time" type="text" name="gene_time" value="<?php echo $data['gene_time']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">活动地点：</td>
                <td>
                    <input  type="text" name="place" value="<?php echo $data['place']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">人数：</td>
                <td>
                    <input  type="text" name="number" value="<?php echo $data['number']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">0男1女：</td>
                <td>
                	<input type="radio" name="sex" value="0" <?php if($data['sex'] == '0') echo 'checked="checked"'; ?> />0 
                	<input type="radio" name="sex" value="1" <?php if($data['sex'] == '1') echo 'checked="checked"'; ?> />1 
                </td>
            </tr>
            <tr>
                <td class="label"> 预算金额：</td>
                <td>
                    <input  type="text" name="budget" value="<?php echo $data['budget']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">0即将开始1正在进行3已经结束：</td>
                <td>
                	<input type="radio" name="status" value="0" <?php if($data['status'] == '0') echo 'checked="checked"'; ?> />0 
                	<input type="radio" name="status" value="1" <?php if($data['status'] == '1') echo 'checked="checked"'; ?> />1 
                </td>
            </tr>
            <tr>
                <td class="label">插入文本：</td>
                <td>
                	<textarea id="text" name="text"><?php echo $data['text']; ?></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">插入图片：</td>
                <td>
                	<input type="file" name="picture" /><br /> 
                	<?php showImage($data['picture'], 100); ?>                </td>
            </tr>
            <tr>
                <td class="label">主题：</td>
                <td>
                    <input  type="text" name="theme" value="<?php echo $data['theme']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">结束时间：</td>
                <td>
                    <input id="end_time" type="text" name="end_time" value="<?php echo $data['end_time']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">0未1下225下335下435：</td>
                <td>
                    <input  type="text" name="age" value="<?php echo $data['age']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">1是商家2是用户：</td>
                <td>
                    <input  type="text" name="user_type" value="<?php echo $data['user_type']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">店铺的id：</td>
                <td>
                    <input  type="text" name="shop_id" value="<?php echo $data['shop_id']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">结算方式：</td>
                <td>
                    <input  type="text" name="account_type" value="<?php echo $data['account_type']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">1是活动2是拼单：</td>
                <td>
                    <input  type="text" name="type" value="<?php echo $data['type']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">发布的时间：</td>
                <td>
                    <input id="time1" type="text" name="time1" value="<?php echo $data['time1']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">是否推荐：</td>
                <td>
                    <input  type="text" name="hot" value="<?php echo $data['hot']; ?>" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>
<script>
$("#gene_time").datepicker(); 
$("#end_time").datepicker(); 
$("#time1").datepicker(); 
var um = UM.getEditor('text', {
	initialFrameWidth:"100%"
});
</script>